#include <stdio.h>
#include <stdlib.h>
#include "Includes/Core.h"
#include "Includes/Driver.h"
#include "Includes/Messaging.h"
#include "Includes/Rendering.h"
#include "Includes/Window.h"
#include <fcntl.h>
#include <link.h>

/// <summary>
/// TODO
/// </summary>
int main (int argc, char *argv[])
{
	if (DRVInit() < 0)
		return -1;

	if (DRVOpen() < 0)
		return -1;

	if (MOUInit() < 0)
		return -1;

	if (MGSStart() < 0)
		return -1;

	if (GCSStart() < 0)
		return -1;

	getchar();

	if (MGSStop() < 0)
		/*return -1*/;

	if (GCSStop() < 0)
		/*return -1*/;

	if (DRVExit() < 0)
		/*return -1*/;

	return 0;
}

